import request from "@/utils/request";

export function z(data) {
    return request({
        url: 'backend/banner/save',
        method: 'POST',
        data: {
            image: data.image,
            type: data.type
        }
    })
}

export function s(id) {
    return request({
        url: `backend/banner/delete?id=${id}`,
        method: 'DELETE',
        data: {
            id: id
        }
    })
}

export function g(data) {
    return request({
        url: 'backend/banner/update',
        method: 'POST',
        data: {
            id: data.id,
            image: data.image,
            type: data.type
        }
    })
}

export function c() {
    return request({
        url: 'backend/banner/index',
        method: 'GET'
    })
}
